package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公司大保健服务详情对象 sys_product
 * 
 * @author ruoyi
 * @date 2021-01-27
 */
public class SysProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String name;

    /** 存放fastdfs地址，多个资源使用，分割 */
    @Excel(name = "存放fastdfs地址，多个资源使用，分割")
    private String resources;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal saleprice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间")
    private Date createtime;

    /** 下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date offsaletime;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onsaletime;

    /** 状态：0下架 1上架 */
    @Excel(name = "状态：0下架 1上架")
    private Integer state;

    /** 成本价 */
    @Excel(name = "成本价")
    private String costprice;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long salecount;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return name;
    }

    public void setResources(String resources)
    {
        this.resources = resources;
    }
    public String getResources()
    {
        return resources;
    }

    public void setSaleprice(BigDecimal saleprice)
    {
        this.saleprice = saleprice;
    }
    public BigDecimal getSaleprice()
    {
        return saleprice;
    }

    public void setOffsaletime(Date offsaletime)
    {
        this.offsaletime = offsaletime;
    }
    public Date getOffsaletime()
    {
        return offsaletime;
    }

    public void setOnsaletime(Date onsaletime)
    {
        this.onsaletime = onsaletime;
    }
    public Date getOnsaletime()
    {
        return onsaletime;
    }

    public void setState(Integer state)
    {
        this.state = state;
    }
    public Integer getState()
    {
        return state;
    }

    public void setCostprice(String costprice)
    {
        this.costprice = costprice;
    }
    public String getCostprice()
    {
        return costprice;
    }

    public void setSalecount(Long salecount)
    {
        this.salecount = salecount;
    }
    public Long getSalecount()
    {
        return salecount;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("resources", getResources())
            .append("saleprice", getSaleprice())
            .append("offsaletime", getOffsaletime())
            .append("onsaletime", getOnsaletime())
            .append("state", getState())
            .append("costprice", getCostprice())
            .append("createtime", getCreatetime())
            .append("salecount", getSalecount())
            .toString();
    }
}
